package weektwo_day03_client;
import java.net.Socket;
import java.util.Scanner;

import weektwo_day03_parser.DataProcess;
import weektwo_day03_utils.Format;

public class FTPClient {
	public static void main(String[] args) throws Exception {
		System.out.println("please input command");
		Scanner scanner = new Scanner(System.in);
		String command = scanner.nextLine();
		String[] params = Format.formatString(command);
		System.out.println(params[2]);
		Socket socket = new Socket(params[2],8888);
		DataProcess process = new DataProcess(params);
		process.upLoad(socket.getInputStream(), socket.getOutputStream());
		socket.close();
		scanner.close();
	}

	
}
